#include "FileManager.h"

FileManager* FileManager::s_Instance = 0;

FileManager::FileManager()
{
}

char* FileManager::Open(char* path)
{
	char* temp = new char[100];
	strcpy(temp, m_FileDirectory);
	strcat(temp, path);
	return temp;
}

FileManager* FileManager::GetInstance()
{
	if (!s_Instance)
	{
		s_Instance = new FileManager();
	}
	return s_Instance;
}

FileManager::~FileManager()
{
}

void FileManager::Init(char* fileDirectory)
{
	strcpy(m_FileDirectory, fileDirectory);
}